package com.elsa.smart_buffet.utils;

import org.springframework.stereotype.Component;

/**
 * @ClassName : CategoryUtil  //类名
 * @Author : elsa //作者
 */
@Component
public class CategoryUtil {

    public String getCategory(String Category) {
        String mCategory;
        if (Category.equals("1")) {
            mCategory = "肉类";
        } else if (Category.equals("2")) {
            mCategory = "青叶菜类";
        } else if (Category.equals("3")) {
            mCategory = "瓜果类";
        } else {
            mCategory = "水果类";
        }
        return mCategory;
    }

}
